package gang.org.springframework.framework.core.annotation;

import gang.org.springframework.framework.metadata.GangAnnotationAttributes;
import gang.org.springframework.framework.metadata.GangAnnotationMetadata;

import java.lang.annotation.Annotation;
import java.util.Set;

public abstract class GangAnnotationUtils {

    public static boolean isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType){
        return isCandidateClass(clazz, annotationType.getName());
    }

    public static boolean isCandidateClass(Class<?> clazz, String annotationName){
        if (annotationName.startsWith("java.")) {
            return true;
        }
        if (GangAnnotationsScanner.hasPlianJavaAnnotationOnly(clazz)) {
            return false;
        }
        return true;
    }
}
